FROM centos:6.9
ADD /root/jdk-8u171-linux-x64.tar.gz /usr/local/
ENV JAVA_HOME=/usr/local/jdk1.8.0_171
ENV CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
ENV PATH=$PATH:$JAVA_HOME/bin
ADD ../../../target/spring-boot-test.jar /var/spring-boot-test.jar
ENTRYPOINT ["java", "-jar", "/var/spring-boot-test.jar"]